<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 200px;
      height: 100px;
      /* background-image、list-style-image、border-image、content等；
          <gradient>常见的函数实现有下面几种：
            口linear-gradient():创建一个表示两种或多种颜色线性渐变的图片；
            口radial-gradient():创建了一个图像，该图像是由从原点发出的两种或者多种颜色之间的逐步过渡组成；
            口repeating-linear-gradient():创建一个由重复线性渐变组成的<image>;
            □ repeating-radial-gradient():创建一个重复的原点触发渐变组成的<image>;

      */

      /* background-color: orange; */
      /* background-image: linear-gradient(red, blue); */
      /* 改变方向 */
      /* background-image: linear-gradient(to right, red, blue); */
      /* background-image: linear-gradient(to right top, red, blue); */
      /* background-image: linear-gradient(-45deg, red, blue); */
      /* background-image: linear-gradient(to right, red, blue 40px, orange 60%, purple 100%); */


      /* radial-gradient */
      /* background-image: radial-gradient(red, blue); */
      background-image: radial-gradient(at 0% 50%, red, blue);
    }
  </style>
</head>
<body>
  
  <div class="box"></div>

</body>
</html>